package com.hehui.module.customer.entity;

import com.hehui.common.core.commom.BaseEntity;


import javax.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;

/*
 * 自定义区域
 * @author: why
 * @date: 2021/1/5 9:21
 * @description:
 */

public class CustomLocale extends BaseEntity {

    private static final long serialVersionUID = 1L;
    /*区域ID*/
    private Long localeId;
    /*商户号*/
    private Long merchantId;
    /*父ID*/
    private Long parentId;
    /*祖籍列表*/
    private String ancestors;
    /*区域名*/
    private String name;
    /*排序*/
    private Integer orderTop;
    /*编号*/
    private String num;
    /*是否默认   0是 1否 */
    private String isdef;
    /*子节点*/
    private List<CustomLocale> children = new ArrayList<CustomLocale>();

    public Long getLocaleId() {
        return localeId;
    }

    public void setLocaleId(Long localeId) {
        this.localeId = localeId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }
    @Size(min = 1, max = 30, message = "归属区字符1-30")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getOrderTop() {
        return orderTop;
    }

    public void setOrderTop(Integer orderTop) {
        this.orderTop = orderTop;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getIsdef() {
        return isdef;
    }

    public void setIsdef(String isdef) {
        this.isdef = isdef;
    }

    public List<CustomLocale> getChildren() {
        return children;
    }

    public void setChildren(List<CustomLocale> children) {
        this.children = children;
    }



}
